package com.example.japinhands

//import android.util.Log
//import com.example.japinhands.dao.AdjDao
//import com.example.japinhands.dao.SentenceDao
//import com.example.japinhands.dao.VerbDao
//import com.example.japinhands.dao.WordDao
//import dagger.Module
//import dagger.Provides
//import dagger.hilt.InstallIn
//import dagger.hilt.android.components.ViewModelComponent
//
//@Module
//@InstallIn(ViewModelComponent::class)
//object DatabaseModule {
//    private const val TAG = "DatabaseModule"
//    @Provides
//    fun provideWordDao(): WordDao {
//        Log.d(TAG, "provideWordDao")
//        return WordDatabase.getDatabase(JApplication.context).wordDao()
//    }
//    @Provides
//    fun provideAdjDao(): AdjDao {
//        Log.d(TAG, "provideAdjDao")
//        return WordDatabase.getDatabase(JApplication.context).adjDao()
//    }
//    @Provides
//    fun provideVerbDao(): VerbDao {
//        Log.d(TAG, "provideVerbDao")
//        return WordDatabase.getDatabase(JApplication.context).verbDao()
//    }
//    @Provides
//    fun provideSentenceDao(): SentenceDao {
//        Log.d(TAG, "provideSentenceDao")
//        return WordDatabase.getDatabase(JApplication.context).sentenceDao()
//    }
//}